package com.bjsxt.chapter11_flyWeight;

/**
 * @ClassName Coordinate
 * @Description 坐标，外部状态，不可共享
 * @Author 黑马程序员
 * @Date 15:50 2024/6/22
 * @Version 1.0
 **/
public class Coordinate {

    private int x;

    private int y;

    public Coordinate() {
    }

    public Coordinate(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
}
